11.5
a. Consider the following hash function. Messages are in the form of a sequence of decimal
numbers, M = (a1, a2,..., ai). The hash value h is calculated as

for some predefined value n. Does this hash function satisfy any of
the requirements for a hash function listed in Section 11.4? Explain your answer.
b. Repeat part (
a) for the hash function

c. Calculate the hash function of part (
b) for M = (189, 632, 900, 722, 349) andn = 989.
 
 
View Solution
 
 
 
<< Back Next >>